package com.basic.business.storeIndicators.service.impl;

import org.springframework.stereotype.Service;
import com.basic.common.core.service.impl.BaseServiceImpl;
import com.basic.business.storeIndicators.domain.TStoreIndicators;
import com.basic.business.storeIndicators.service.ITStoreIndicatorsService;
import com.basic.business.storeIndicators.mapper.TStoreIndicatorsMapper;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * 店铺指标数据Service业务层处理
 *
 * @author zhaoxy_jn@163.com
 */
@Service
public class TStoreIndicatorsServiceImpl extends BaseServiceImpl<TStoreIndicatorsMapper,TStoreIndicators> implements ITStoreIndicatorsService {
    @Resource
    private TStoreIndicatorsMapper tStoreIndicatorsMapper;

    @Override
    public int deleteByFileId(String fileId) {
        return tStoreIndicatorsMapper.deleteByFileId(fileId);
    }

    @Override
    public int saveBatch(List<TStoreIndicators> list) {
        return tStoreIndicatorsMapper.saveBatch(list);
    }

    @Override
    public int deleteOldData(String storeId, List<Date> statDateList) {
        return tStoreIndicatorsMapper.deleteOldData(storeId, statDateList);
    }

    @Override
    public List<TStoreIndicators> searchList(TStoreIndicators tStoreIndicators) {
        return tStoreIndicatorsMapper.searchList(tStoreIndicators);
    }
}
